package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * @description: 添加购物车
     * @param: [shoppingCartDTO]
     * @return: void
     **/
    void add(ShoppingCartDTO shoppingCartDTO);

    List<ShoppingCart> list();
    /**
     * @description: 清空购物车
     * @param: []
     * @return: void
     **/
    void clean();

    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
